Component({
  data: {
    selected: 0,
    color: "#bbb",
    selectedColor: "#515151",
    list: [{
      "pagePath":"/pages/weather/weather",
      "iconPath": "../assets/img/icon/cloud0.png",
      "selectedIconPath": "../assets/img/icon/cloud1.png",
      "text": "天气"
    },{
      "pagePath":"/pages/map/map",
      "iconPath": "../assets/img/icon/map0.png",
      "selectedIconPath": "../assets/img/icon/map1.png",
      "text": "地图"
    },{
      "pagePath":"/pages/mine/mine",
      "iconPath": "../assets/img/icon/user0.png",
      "selectedIconPath": "../assets/img/icon/user1.png",
      "text": "我的"
    }],
    t:null
  },
  attached() {
  },
  detached(){
  },
  methods: {
    switchTab(e) {
      const data = e.currentTarget.dataset
      const url = data.path
      wx.switchTab({url})
      // this.setData({
      //   selected: data.index
      // })
    }
  }
})